package io.wins.vertx.service;

import io.vertx.core.Vertx;
import io.vertx.core.eventbus.Message;
import io.wins.vertx.entity.Root;
import io.wins.vertx.service.impl.RootServiceImpl;

public interface RootService {
    String SERVICE_ADDRESS = "root.service";
    static RootService create(final Vertx vertx) {return new RootServiceImpl(vertx);}
    RootService getRootById(final String id, Message tMessage);
    RootService listRoot(Message tMessage);
    RootService createRoot(Root root, Message tMessage);

    RootService updateRoot(Root root, Message tMessage);
}
